package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YhLogDisplayConversionMapper;
import com.ruoyi.system.domain.YhLogDisplayConversion;
import com.ruoyi.system.service.IYhLogDisplayConversionService;

/**
 * 日志显示转化Service业务层处理
 * 
 * @author dr
 * @date 2023-07-19
 */
@Service
public class YhLogDisplayConversionServiceImpl implements IYhLogDisplayConversionService 
{
    @Autowired
    private YhLogDisplayConversionMapper yhLogDisplayConversionMapper;

    /**
     * 查询日志显示转化
     * 
     * @param id 日志显示转化主键
     * @return 日志显示转化
     */
    @Override
    public YhLogDisplayConversion selectYhLogDisplayConversionById(Long id)
    {
        return yhLogDisplayConversionMapper.selectYhLogDisplayConversionById(id);
    }

    /**
     * 查询日志显示转化列表
     * 
     * @param yhLogDisplayConversion 日志显示转化
     * @return 日志显示转化
     */
    @Override
    public List<YhLogDisplayConversion> selectYhLogDisplayConversionList(YhLogDisplayConversion yhLogDisplayConversion)
    {
        return yhLogDisplayConversionMapper.selectYhLogDisplayConversionList(yhLogDisplayConversion);
    }

    /**
     * 新增日志显示转化
     * 
     * @param yhLogDisplayConversion 日志显示转化
     * @return 结果
     */
    @Override
    public int insertYhLogDisplayConversion(YhLogDisplayConversion yhLogDisplayConversion)
    {
        return yhLogDisplayConversionMapper.insertYhLogDisplayConversion(yhLogDisplayConversion);
    }

    /**
     * 修改日志显示转化
     * 
     * @param yhLogDisplayConversion 日志显示转化
     * @return 结果
     */
    @Override
    public int updateYhLogDisplayConversion(YhLogDisplayConversion yhLogDisplayConversion)
    {
        return yhLogDisplayConversionMapper.updateYhLogDisplayConversion(yhLogDisplayConversion);
    }

    /**
     * 批量删除日志显示转化
     * 
     * @param ids 需要删除的日志显示转化主键
     * @return 结果
     */
    @Override
    public int deleteYhLogDisplayConversionByIds(Long[] ids)
    {
        return yhLogDisplayConversionMapper.deleteYhLogDisplayConversionByIds(ids);
    }

    /**
     * 删除日志显示转化信息
     * 
     * @param id 日志显示转化主键
     * @return 结果
     */
    @Override
    public int deleteYhLogDisplayConversionById(Long id)
    {
        return yhLogDisplayConversionMapper.deleteYhLogDisplayConversionById(id);
    }
}
